package edu.core.testapp.server;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class StoredFile {

	@Persistent
	@PrimaryKey
	private String fileName;
	
	@Persistent
	private byte[] fileData;
	
	public StoredFile(String fileName) {
		this.fileName = fileName;
	}
	
	public String getName() {
		return fileName;
	}
	
	public byte[] getData() {
		return this.fileData;
	}
	
	public void setData(byte[] data) {
		fileData = data;
	}
}
